<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:p="http://primefaces.prime.com.tr/ui"
	template="/WEB-INF/jsf/template.xhtml">

	<ui:define name="content">
		<h:form prependId="false">
			<p:commandButton image="back" ajax="false" immediate="true" style="margin-right:20px;" value="#{tiersribmsgs['navigation.back']}" action="/jsf/tiersrib/viewTiersRib.xhtml"/>
		
			<p:panel header="#{tiersribmsgs['utilisateurs.title']} Details" style="margin-top:10px">
				<p:messages />
				<h:panelGrid id="detail" columns="2" styleClass="grid" columnClasses="label,value">
					<h:outputText value="#{tiersribmsgs['utilisateurs.usruser.title']}:*" />
							<h:outputText value="#{TiersRibComponent.utilisateursbytrbusercreation.usrUser}"/>
					<h:outputText value="#{tiersribmsgs['utilisateurs.usrpassword.title']}:" />
							<h:inputText id="tiersrib_usrpassword" value="#{TiersRibComponent.utilisateursbytrbusercreation.usrPassword}" required="false" label="tiersrib_usrpassword" />
					<h:outputText value="#{tiersribmsgs['utilisateurs.usrservice.title']}:" />
							<h:inputText id="tiersrib_usrservice" value="#{TiersRibComponent.utilisateursbytrbusercreation.usrService}" required="false" label="tiersrib_usrservice" />
					<h:outputText value="#{tiersribmsgs['utilisateurs.usrmail.title']}:" />
							<h:inputText id="tiersrib_usrmail" value="#{TiersRibComponent.utilisateursbytrbusercreation.usrMail}" required="false" label="tiersrib_usrmail" />
					<h:outputText value="#{tiersribmsgs['utilisateurs.usrenabled.title']}:" />
							<h:selectBooleanCheckbox id="tiersrib_usrenabled" value="#{TiersRibComponent.utilisateursbytrbusercreation.usrEnabled}" required="false" label="tiersrib_usrenabled" />
         			<h:panelGroup>
         				<p:commandButton image="save" ajax="false" style="margin-right:20px;" value="#{tiersribmsgs['navigation.save']}" action="#{TiersRibComponent.saveTiersRibUtilisateursByTrbUserCreation(TiersRibComponent.tiersrib.trbTiers, TiersRibComponent.tiersrib.trbRib, TiersRibComponent.utilisateursbytrbusercreation)}"/>
         			</h:panelGroup>
				</h:panelGrid>
			</p:panel>

		</h:form>
	</ui:define>
</ui:composition>